﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
//import
using Microsoft.Practices.Unity;
using System.Web.ModelBinding;
using ddcCajamarca.BusinessLogic.Post.Service;
using System.IO;
using ddcCajamarca.BusinessEntities.Post;

namespace ddcCajamarca.Web.Post
{
    public partial class frmListarNotasInformativas : System.Web.UI.Page
    {
        [Dependency]
        public INotaInformativaBL notaInformativaBL { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public IEnumerable<NotaInformativa> GetNotas([Control("tbxCriterio")]string criterio,
                                              [Control("tbxFechaIni")]DateTime? fechInicio,
                                              [Control("tbxFechaFin")]DateTime? fechFin)
        {
            return notaInformativaBL.SelectAllNotaInformativaByCriterioAndFechas(criterio, fechInicio, fechFin);
        }
    }
}